package sctu.edu.java.year2016.team04.Liliang.day20160522.chapter4_1;

/**
 * Created by asus on 2016/5/22.
 * 编写Java程序，实现判断变量x是奇数还是偶数。
 */
import java.util.Scanner;
public class jioushu {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        long number = scan.nextLong();
        String check = (number % 2 == 0? "这个数是偶数":"这个数是奇数");
        System.out.println(check);
    }
}
